/**
 * Created by relevlin on 2016-01-11.
 */
require.config({
    baseUrl: BASE_URL + '/js',

    shim: {
        "template": {
            exports: "template"
        },
        "headMenu": {
            exports: "headMenu",
            deps: ["jquery"]
        },
        "carousel": {
            exports: "carousel",
            deps: ["jquery"]
        },
        "common": {
            exports: "common",
            deps: ["jquery"]
        },
        "jquery.pngAlpha": {
            exports: "jq_pngAlpha",
            deps: ["jquery"]
        },
        "easyui": {
            deps: ["jquery"]
        },

        "easyui.locale": {
            deps: ["jquery", "easyui"]
        },
        "easyui.ext": {
            exports: "easyui.ext",
            deps: ["jquery", "easyui"]
        },
        "eCharts": {
            deps: ["jquery"]
        }
        ,
        "hammer": {
            deps: ["jquery"]
        },
        "velocity": {
            deps: ["jquery"]
        },
        "muuri": {
            deps: ["jquery", "hammer", "velocity"]
        },
        "divContainer":{
            deps: ["jquery", "muuri"]
        },
        "chartLoader":{
            deps: ["jquery","easyui"]
        },
        "dateRagne":{
            deps: ["jquery"]
        },
        "jquery.gridster":{
            deps: ["jquery"]
        }
    },
    paths: {
        "jquery": 'public/jquery/jquery',
        "template": "public/artTemplate/template",
        "jquery.cookie": "public/jquery/jquery.cookie",
        "jquery.pngAlpha": "public/jquery/jquery_pngAlpha",
        "common": 'public/common',
        "headMenu": 'public/headMenu/headMenu',
        "easyui": 'public/easyui/jquery.easyui.min',
        "easyui.locale": 'public/easyui/locale/easyui-lang-zh_CN',
        "easyui.ext": "public/easyui/jquery.easyui.ext",
        "echarts": "public/echart/echarts.min",
        "carousel": 'public/carousel',
        "jquery.ext": "public/utils/jquery.ext",
        "jTopo": "public/jtopo/jtopo.min",
        "muuri": "public/muuri/muuri",
        "hammer": "public/muuri/hammer",
        "velocity": "public/muuri/velocity",
        "divContainer":"public/muuri/divContainer",
        "chartLoader":"public/muuri/chartLoader",
        "dateRange":"public/dateRange/index",
        "mustache":"public/mustache/mustache.min",
        "jquery.gridster":"public/jquery/jquery.gridster"
    }
});

define(['public/app'],
    function () {
        var app = require('public/app');
        app.setBasePath(BASE_URL);

        return {
            //在此定义每个页面都公共需要的js
            commonRequire: [
                'template',
                'domReady',
                'jquery',
                'jquery.cookie',
                'jquery.pngAlpha',
                'headMenu',
                'carousel',
                'easyui',
                'easyui.locale',
                'easyui.ext',
                'public/app',
                'public/utils',
                'public/dataReady',
                "jquery.ext",
                "jTopo",
                "echarts",
                "dateRange",
                "mustache"
            ]
        }
    });